package org.rcy.ruicingmarket.goods;

import io.swagger.v3.oas.annotations.Parameter;
import lombok.Data;
import org.springdoc.api.annotations.ParameterObject;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 吴康桥
 * @Description
 * @date 2022/12/19 16:44
 */

@Data
@ParameterObject
public class GoodsVo implements Serializable {

	@Parameter(description = "商品编号")
	private Long gid; //商品编号
	@Parameter(description = "商品名称")
	private String name; //商品名称
	@Parameter(description = "商品分类编号")
	private Long cid; //商品分类id
	@Parameter(description = "商品最小单价")
	private Integer price_min; //最小单价
	@Parameter(description = "商品最大单价")
	private Integer price_max;//最大单价
	@Parameter(description = "商品活动ID")
	private Long aid; //商品活动id
	@Parameter(description = "商家ID")
	private Long sellerId;//所属商家id
	@Parameter(description = "商品封面图片")
	private String img; //商品封面

	private Boolean status;

	private Date createTime;

	private Date updatetime;


	//细节信息
	@Parameter(description = "商品描述")
	private String description; //商品描述
	@Parameter(description = "商品详情图片1")
	private String detailImg1;  //商品详情图1
	@Parameter(description = "商品详情图片2")
	private String detailImg2; //商品详情图2
	@Parameter(description = "商品详情图片3")
	private String detailImg3; //商品详情图3
	@Parameter(description = "商品详情图片4")
	private String detailImg4; //商品详情图4
	@Parameter(description = "商品固有属性")
	private String attrs; //固有属性
	@Parameter(description = "商品特色")
	private String featureInfo; //商品特色
	@Parameter(description = "商品评论数")
	private Integer commentcount; //商品评论数
	@Parameter(description = "商品月销量")
	private Integer monthlySales; //商品月销量
	@Parameter(description = "商品单价")
	private Integer price;//单价
	@Parameter(description = "商品库存")
	private Integer stock;//库存


}
